//
//  BookShelfViewController.h
//  handbooklite
//
//  Created by bao_wsfk on 12-8-29.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "UIViewController_Extension.h"
#import "Config.h"
#import "ASINetworkQueue.h"
#import "ASIHTTPRequest.h"
#import "InterceptorWindow.h"
#import "MMGridView.h"

@interface BookShelfViewController : UIViewController<MMGridViewDelegate,MMGridViewDataSource>{
    
    ASINetworkQueue *_networkQueue;
    NSString *_books_path;
    
    NSMutableArray *_downnums;
    NSMutableArray *_books;
    IBOutlet MMGridView *_gridView;
    //IBOutlet UIPageControl *_pageControl;
    UIProgressView *_progress;
    
    InterceptorWindow *_myWindow;
    NSString *_docBookPath;
    NSString *_bundleBookPath;
    NSString *_defaultScreeshotsPath;
}
@property (nonatomic ,retain) ASINetworkQueue *networkQueue;
@property (nonatomic ,copy) NSString *books_path;
@property (nonatomic, retain) NSArray *downnums;
@property (nonatomic, retain) NSArray *books;
@property (nonatomic, retain) MMGridView *gridView;
//@property (nonatomic, retain) UIPageControl *pageControl;
@property (nonatomic, retain) UIProgressView *progress;
@property (nonatomic, retain) InterceptorWindow *myWindow;
@property (nonatomic, retain) NSString *docBookPath;
@property (nonatomic, retain) NSString *bundleBookPath;
@property (nonatomic, retain) NSString *defaultScreeshotsPath;

- (void)toDownloadViewByBookCell:(MMGridViewCell *)bookCell;

- (void)toBookViewController:(int)index;

- (NSDictionary *)bookByDownNum:(NSString *)downnum;

@end
